package org.jackysoft.report.visitor;

import org.jackysoft.entity.AbstractItem;
import org.jackysoft.report.ItemUnit;


public class LocalVisitor extends AbstractArmItemVisitor {

	private Double total = 0d;

	public Double getValue() {
		return total;
	}

	public void visite(ItemUnit item) {
		AbstractItem itm = (AbstractItem) item;
		total += itm.getDataItems().get("local").getAtomValue() * itm.getHost().getPrice();
	}

	
}
